<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>学生信息</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
		<link rel="stylesheet" href="{:ADDON_PUBLIC_PATH}/css/weuix.min.css" />
		<link rel="stylesheet" type="text/css" href="{:ADDON_PUBLIC_PATH}/css/jquery-weui.min.css"/>
		<link rel="stylesheet" href="{:ADDON_PUBLIC_PATH}/css/header_common.css" />
		<link rel="stylesheet" href="{:ADDON_PUBLIC_PATH}/css/person_edit.css" />
	</head>
	<style type="text/css">
		.weui_cells:before,.weui_cells:after,.weui_cell:before {
		     border-top: none; 
		     border-bottom: none;
		}
		.weui_cell {
    		padding: 8px 25px;
    	}
	</style>
	<body>
		<div id="bgimg">
			
		</div>
		<div class="box">
			<div class="example">
				<img id="touxiang" src="<if condition="$info['photo_url']">{:get_file_url($info['photo_url'])}<else/>{:ADDON_PUBLIC_PATH}/img/touxiang.jpg</if>"/>
			</div>
		
			<div id="posi">
			
				<div class="weui_cells">
					<div class="weui_cell">
						<div class="weui_cell_bd weui_cell_primary">
							<p>姓名</p>
						</div>
				<div class="weui_cell_ft">{$info['username']}</div>
					</div>
					
					<div class="weui_cell">
						<div class="weui_cell_bd weui_cell_primary">
							<p>学号</p>
						</div>
				<div class="weui_cell_ft">{$info['no']}</div>
					</div>
					<div class="weui_cell">
						<div class="weui_cell_bd weui_cell_primary">
							<p>手机号码</p>
						</div>
				<div class="weui_cell_ft">{$info['mobile']}</div>
					</div>
					<div class="weui_cell">
						<div class="weui_cell_bd weui_cell_primary">
							<p>身份证</p>
						</div>
				<div class="weui_cell_ft">{$info['card_id']}</div>
					</div>
					
				</div>
				<div class="weui_cells">
					<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary">
					<p>学院</p>
				</div>
				<div class="weui_cell_ft">{$info['department']}</div>
			</div>
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary">
					<p>专业</p>
				</div>
				<div class="weui_cell_ft">{$info['major']}</div>
			</div>
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary">
					<p>班级</p>
				</div>
				<div class="weui_cell_ft">{$info['class']}</div>
			</div>
				</div>

				<div class="weui_cells">
					<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary">
					<p>状态</p>
				</div>
				<div class="weui_cell_ft"><if condition="$info['confirm']"><font color="greed">已完成</font><else/><font color="red">未完成</font></if></div>
			</div>
				</div>
			
				<div class="weui_btn_area" style="margin-top: 35px;">
				<if condition="$info['photo_url']"><a class="weui_btn weui_btn_primary" href="javascript:void(0)" id="btn">确定</a></if>
		            
		            <a class="weui_btn weui_btn_warn" href="{:U('studCode',array('aid'=>$info['aid']))}" >拍照</a>
		        </div>
		        <div class="weui_btn_area" style="margin-top: 35px;">
		        <if condition="!$info['confirm']"><a class="weui_btn weui_btn_warn" href="{:U('updateInfo',array('aid'=>I('aid')))}" >修改信息(暂时)</a></if>
		            <a class="weui_btn weui_btn_primary" href="{:U('infoReview',array('aid'=>I('get.aid')))}" >意见反馈(暂时)</a>
		            
		        </div>
			</div>
		</div>
		<div class="weui-footer" style="margin-top: 170px;">
		  <p class="weui-footer__links">
		    <a href="javascript:void(0);" class="weui-footer__link">微生活工作室</a>
		  </p>
		  <p class="weui-footer__text" style="border-radius: ;">Copyright © 20016-2017</p>
		</div>
		
	</body>
	<script src="{:ADDON_PUBLIC_PATH}/js/jquery-3.2.1.min.js"></script>
	<script src="{:ADDON_PUBLIC_PATH}/js/jquery-weui.js" type="text/javascript" charset="utf-8"></script>
	<script src="{:ADDON_PUBLIC_PATH}/js/swiper.js" type="text/javascript" charset="utf-8"></script>
	<script src="{:ADDON_PUBLIC_PATH}/js/zepto.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$(function(){
			$('.example img').on('click', function(){
				var src = $('.example img')[0].src;
				var pb1 = $.photoBrowser({
					  items: [
					    src
					  ]
					});
				pb1.open();
				$('.swiper-pagination').children('span').remove();
			});
		});
		$("#btn").click(function(){
			  $.confirm("是否已经完成", "用户信息确认", function() {
		          location.href = "{:U('photoOk',array('aid'=>I('get.aid'),'uid'=>$info['id']))}";
		        }, function() {
		          //取消操作
		        });
		});
	</script>
</html>